﻿using MslDiary.Utils;
using System;
using System.Windows.Controls;
using System.Windows.Input;
namespace MslDiary.View
{
    /// <summary>
    /// SetLock.xaml 的交互逻辑
    /// </summary>
    public partial class RemoveLock 
    {
        public RemoveLock()
        {
            InitializeComponent();
            this.pbPwd.PasswordChanged += OnBindedPasswordChanged;
        }
        private void OnBindedPasswordChanged(object sender, System.Windows.RoutedEventArgs e)
        {
            PasswordBox passwordtext = (PasswordBox)sender;
            PasswordBoxHelper.SetPasswordBoxSelection(passwordtext, passwordtext.Password.Length + 1, passwordtext.Password.Length + 1);
        }
    }
}
